/*
 * @Author: your name
 * @Date: 2021-08-02 12:08:10
 * @LastEditTime: 2021-08-31 16:26:29
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-admin-template\src\store\getters.js
 */
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  userName: state => state.user.userInfo.username, // 用户名
  myName: state => state.user.myName,
  staffPhoto: state => state.user.userInfo.staffPhoto, // 用户头像
  userId: state => state.user.userInfo.userId, // 用户的 ID
  companyId: state => state.user.userInfo.companyId // 公司的ID
}
export default getters
